package cn.childspace.java_study.security.aes;

public class Test {

    public static void main(String[] args) throws Exception {
        String content = "test";  
        String password = "12345678";  
        //加密   
        System.out.println("加密前：" + content);  
        byte[] encryptResult = AESUtil.encrypt(password, content);
        
        //解密
        byte[] decryptResult = AESUtil.decrypt(password,encryptResult);  
        System.out.println("解密后：" + new String(decryptResult));  
    }

}
